package com.yike.product.service;

import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.product.entity.Barcode;
import com.yike.product.param.BarcodePageParam;

/**
 * 条码库 服务类
 *
 * @author yike
 * @since 2024-07-17
 */
public interface BarcodeService extends BaseService<Barcode> {

    /**
     * 保存
     *
     * @param barcode
     * @return
     * @throws Exception
     */
    boolean saveBarcode(Barcode barcode) throws Exception;

    /**
     * 修改
     *
     * @param barcode
     * @return
     * @throws Exception
     */
    boolean updateBarcode(Barcode barcode) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteBarcode(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param barcodePageParam
     * @return
     * @throws Exception
     */
    Paging<Barcode> getBarcodePageList(BarcodePageParam barcodePageParam) throws Exception;

}
